﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Flyable//飞，父类
    {
        private string name;
        internal Ivehicle vehicle;
        internal Ianimal animal;
        public string Name { get; set; }
        public Ivehicle Vehicle { get; set; }
        public Ianimal Animal { get; set; }

        public Flyable(string name)
        {
            this.name=name;
        }
        public void Fly()
        {
            Console.WriteLine("我是{0}",name);
            Console.WriteLine("我会飞");
        }
    }
}
